//
//  YAUser.swift
//  KeepCliming
//
//  Created by 鱼龙之梦 on 15/9/6.
//  Copyright © 2015年 panyanzhi. All rights reserved.
//

import UIKit

class YAUser: NSObject {
    var id:Int = 0
    /// 昵称
    var name:String?
    ///头像地址
    var profile_image_url:String?
    ///  认证情况
    var verified:Int = 0
    var verified_type:Int = 0
    /// 等级
    var mbrank:Int = 0
     //MARK:--- 字典构造函数
    init(dict:[String:AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
     //MARK:--- 排除不认识的键值
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
      
    }
     //MARK:--- 自定义打印键值
    override var description:String{
        let keys = ["id","name","profile_image_url","verified_type","mbrank","verified"]
        return dictionaryWithValuesForKeys(keys).description
    }
    
}
